###########################################
# Dockerfile Sample
###########################################
# Base image is Ubuntu
FROM ubuntu:14.04

# Author: Dr. Peter
MAINTAINER Dr. Peter <peterindia@gmail.com>

# html directory need to be present
COPY html /var/www/html

#COPY httpd.conf magic /etc/httpd/conf/

# tar file need to be present in current working directory
ADD my_tar_file.tar /

# setting up environment variables
ENV DEBUG_LVL 3

ENV APACHE_LOG_DIR /var/log/apache

# setting up user ID
USER 73

# setting current  working directory to start from
WORKDIR /var/log

# exposing port 8080 to docker image
EXPOSE 7373/udp 8080

# running a simple echo instruction
RUN echo "echo Welcome to Docker!"   #>> /root/.bashrc

# settin up the current entry point
ENTRYPOINT ["echo", "Dockerfile ENTRYPOINT demo"]

#setting up a command to run when other updated images are crafted from this image
ONBUILD ADD config /etc/appconfig
